<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伪 · 正方</title>
</head>
<body background="http://localhost/Nise-zf/Picture/chihaya.jpg">
<h1 style="text-align: center;background-color: darkgray">欢迎您，{$teacher.teachername}老师</h1>
<h3 align="right">
    <a href="/Nise-zf/index.php/Home/CreateLesson/index">新建课程</a>
    <a href="http://localhost/Nise-zf/index.php">返回首页</a>
    <a href="/Nise-zf/index.php/Home/TeacherLogout/logout">退出登录</a>
</h3>
<h2 align="center">已创建的课程</h2>
<table bgcolor="#ffe4c4" border="1" width="1000" align="center">
    <tr>
        <th>课程代码</th><th>课程名称</th><th>授课教师</th><th>上课时间</th><th>上课课室</th><th>选项</th>
    </tr>
    <volist name="lesson" id="class">
        <tr>
            <td align="center">{$class.lessonid}</td>
            <td align="center">{$class.lessonname}</td>
            <td align="center">{$class.teachername}</td>
            <td align="center">{$class.lessontime}</td>
            <td align="center">{$class.lessonroom}</td>
            <td align="center">
                <form action="/Nise-zf/index.php/Home/DeleteLesson/delete" method="POST">
                    <button name="lessonId" value="{$class.lessonid}">删除课程</button>
                </form>
            </td>
        </tr>
    </volist>
</table>
</body>
</html>